package com.test.demo.consumer;

import com.test.demo.provider.service.DemoService;
import org.apache.dubbo.config.annotation.Reference;
import org.apache.dubbo.rpc.service.GenericService;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
class GenericCosumer {

    @Reference(version = "generic",interfaceName = "com.test.demo.provider.service.DemoService",generic = true)
    private GenericService genericService;
    @Test
    void contextLoads() {
        Object sayHello = genericService.$invoke("sayHello", new String[]{}, new Object[]{});
        System.out.println(sayHello);
    }

}
